<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <style>
        div{
            border: 3px solid blueviolet;
            height: 500px;
            position: relative;

        }
        span{
            display: inline-block;
            background-color: brown;
            padding: 8px;
            position: absolute;
            right: 50%;
        }

    </style>


<div>

    <span>houdunren.com</span>
</div>
    
</body>
</html>